package com.bbtree.springmvc.rabbitmq;

import java.util.concurrent.CountDownLatch;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;


@Service
public class ReveiverService {
	 private static final Logger LOGGER = LoggerFactory.getLogger(ReveiverService.class); 

	 private CountDownLatch latch = new CountDownLatch(1);

	    public void receiveMessage(String message) {
	    	LOGGER.info("reveice msg=" + message.toString());
	        latch.countDown();
	 }
}
